package com.ruoyi.repairs.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.entity.SysDept;
import com.ruoyi.common.core.domain.entity.SysUser;
import com.ruoyi.customer.domain.CrmCustomer;
import com.ruoyi.employee.domain.CrmEmployee;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 维修对象 crm_repairs
 *
 * @author hct
 * @date 2022-02-11
 */
@Data
public class CrmRepairs extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 序号 */
    private Long id;

    /** 报修地址 */
    @Excel(name = "报修地址")
    private String address;

 
    /** 报修明细 */
    @Excel(name = "报修明细")
    private String details;

    /** 图片 */
    @Excel(name = "图片")
    private String imgs;

    /** 报修电话 */
    @Excel(name = "报修电话")
    private String mobile;

    /** 报修人 */
    @Excel(name = "报修人")
    private String name;
 

    /** 状态 */
    @Excel(name = "状态")
    private Integer repairStatus;

    /** 报修人id */
    @Excel(name = "维修人id")
    private Long userId;
    private SysUser sysUser;
    /** 维修人id */
    @Excel(name = "报修人id")
    private Long memberId;
    private CrmEmployee crmEmployee;

    /** 报修公司id */
    @Excel(name = "报修公司id")
    private Long customerId;

    private CrmCustomer crmCustomer;

    /** 评论工单级别 */
    @Excel(name = "评论工单级别")
    private Long commentRepair;

    /** 评论维修人级别 */
    @Excel(name = "评论维修人级别")
    private Long commentMember;

    /** 评论建议信息 */
    @Excel(name = "评论建议信息")
    private Long commentInfo;

    /** 维修单号 */
    @Excel(name = "维修单号")
    private String repairCode;

    /** 维修开始时间 */
    private String  material;
    /** 维修单号 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date       repairStartTime;
    /** 维修结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date  repairEndTime;
    /** 维修建议 */
    private String         repairSuggest;
    /** 维修费 */
    private String  repairFee;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setAddress(String address)
    {
        this.address = address;
    }

    public String getAddress()
    {
        return address;
    }
     
    public void setDetails(String details)
    {
        this.details = details;
    }

    public String getDetails()
    {
        return details;
    }
    public void setImgs(String imgs)
    {
        this.imgs = imgs;
    }

    public String getImgs()
    {
        return imgs;
    }
    public void setMobile(String mobile)
    {
        this.mobile = mobile;
    }

    public String getMobile()
    {
        return mobile;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
     
    public void setMemberId(Long memberId)
    {
        this.memberId = memberId;
    }

    public Long getMemberId()
    {
        return memberId;
    }
    public void setRepairStatus(Integer repairStatus)
    {
        this.repairStatus = repairStatus;
    }

    public Integer getRepairStatus()
    {
        return repairStatus;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setCustomerId(Long customerId)
    {
        this.customerId = customerId;
    }

    public Long getCustomerId()
    {
        return customerId;
    }
    public void setCommentRepair(Long commentRepair)
    {
        this.commentRepair = commentRepair;
    }

    public Long getCommentRepair()
    {
        return commentRepair;
    }
    public void setCommentMember(Long commentMember)
    {
        this.commentMember = commentMember;
    }

    public Long getCommentMember()
    {
        return commentMember;
    }
    public void setCommentInfo(Long commentInfo)
    {
        this.commentInfo = commentInfo;
    }

    public Long getCommentInfo()
    {
        return commentInfo;
    }
    public void setRepairCode(String repairCode)
    {
        this.repairCode = repairCode;
    }

    public String getRepairCode()
    {
        return repairCode;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("address", getAddress())
                .append("createTime", getCreateTime())
                .append("details", getDetails())
                .append("imgs", getImgs())
                .append("mobile", getMobile())
                .append("name", getName())
                .append("remark", getRemark())
                .append("updateTime", getUpdateTime())
                .append("createBy", getCreateBy())
                .append("updateBy", getUpdateBy())
                .append("memberId", getMemberId())
                .append("repairStatus", getRepairStatus())
                .append("userId", getUserId())
                .append("customerId", getCustomerId())
                .append("commentRepair", getCommentRepair())
                .append("commentMember", getCommentMember())
                .append("commentInfo", getCommentInfo())
                .append("repairCode", getRepairCode())
                .toString();
    }
}
